package cn.sail.mybatis.dao;

import cn.sail.mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public User selectById(long userId);

    public void insertUser(User user);

    public void deleteById(long userId);

    public int updateUserById(User user);

    public List<User> selectUserByUserName(String UserName);

    public List<User> selectUserByElement(User user);

    public int deleteByIds(@Param("ids") List<Integer> ids);

}
